package com.ctshk.rpc.finance.req.bill;

import com.ctshk.rpc.finance.json.FileJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 新增收款认款req
 */
@Data
@ApiModel(value = "BillAddCollectionReq",description = "新增收款认款req")
public class BillAddCollectionReq implements Serializable {

    @NotNull(message = "单号不能为空")
    @ApiModelProperty(value = "收款单号",required = true)
    private String billNumber;

    @NotNull(message = "业务类型不能为空")
    @ApiModelProperty(value = "业务类型",required = true)
    private Integer businessType;

    @NotNull(message = "收款方式ID不能为空")
    @ApiModelProperty(value = "收款方式ID",required = true)
    private Long collectionWayId;

    @NotNull(message = "收款方式不能为空")
    @ApiModelProperty(value = "收款方式",required = true)
    private String collectionWayName;

    @ApiModelProperty(value = "收款类型ID")
    private Long collectionTypeId;

    @ApiModelProperty(value = "收款类型")
    private String collectionTypeName;

    @NotNull(message = "收款金额不能为空")
    @ApiModelProperty(value = "收款金额",required = true)
    private BigDecimal collectionAmount;

    @NotNull(message = "币种ID不能为空")
    @ApiModelProperty(value = "币种ID",required = true)
    private Long currencyId;

    @NotNull(message = "币种名称不能为空")
    @ApiModelProperty(value = "币种名称（如：HKD）",required = true)
    private String currencyName;

    @NotNull(message = "汇率不能为空")
    @ApiModelProperty(value = "汇率",required = true)
    private Double exchangeRate;

    @NotNull(message = "收款时间不能为空")
    @ApiModelProperty(value = "收款时间",required = true)
    private LocalDateTime collectionTime;

    @NotNull(message = "收款凭证JSON不能为空")
    @ApiModelProperty(value = "收款凭证JSON",required = true)
    private List<FileJson> collectionVoucherJsonList;

    @NotNull(message = "销售单号不能为空")
    @ApiModelProperty(value = "订单号",required = true)
    private String saleOrderNumber;

    @NotNull(message = "销售单ID不能为空")
    @ApiModelProperty(value = "订单ID",required = true)
    private Long saleOrderId;

    @NotNull(message = "产品ID列表不能为空")
    @ApiModelProperty(value = "产品ID列表")
    private List<Long> productId;

    @NotNull(message = "产品编号/团号不能为空")
    @ApiModelProperty(value = "产品编号/团号",required = true)
    private String productNumber;

    @NotNull(message = "产品名称不能为空")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    @NotNull(message = "资源信息列表不能为空")
    @ApiModelProperty(value = "资源信息列表")
    private List<String> resourceInfo;

    @NotNull(message = "销售人员ID不能为空")
    @ApiModelProperty(value = "销售人员ID（订单创建人）",required = true)
    private Long saleUserId;

    @NotNull(message = "销售人员名称不能为空")
    @ApiModelProperty(value = "销售人员名称",required = true)
    private String saleUserName;

    @NotNull(message = "销售部门ID不能为空")
    @ApiModelProperty(value = "销售部门ID",required = true)
    private Long saleDeptId;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID（当前用户）",required = true)
    private Long userId;

    @ApiModelProperty(value = "旅客来源1 散客 2 大客户")
    private Integer touristSource;

    @ApiModelProperty(value = "大客户ID")
    private Long bigClientId;

    @ApiModelProperty(value = "大客户名称")
    private String bigClientName;

    private Long scheduleId;

}
